﻿// Fill out your copyright notice in the Description page of Project Settings.

#pragma once

#include "CoreMinimal.h"
#include "Blueprint/UserWidget.h"
#include "Components/Slider.h"
#include "Components/CheckBox.h"
#include "PauseWidget.generated.h"

class UButton;
/**
 * 
 */
UCLASS()
class COMBAT_GAME_CPP_API UPauseWidget : public UUserWidget
{
	GENERATED_BODY()

public:
	virtual bool Initialize() override;

	UPROPERTY(meta=(BindWidget))
	USlider* MusicSlider;

	UPROPERTY(meta=(BindWidget))
	UCheckBox* MusicCheck;


	UPROPERTY(meta=(BindWidget))
	UButton* ContinueBtn;

	UPROPERTY(meta=(BindWidget))
	UButton* RestartBtn;

	UPROPERTY(meta=(BindWidget))
	UButton* BackBtn;

	UFUNCTION(BlueprintCallable)
	void ContinueBtnFunc();

	UFUNCTION(BlueprintCallable)
	void RestartBtnFunc();

	UFUNCTION(BlueprintCallable)
	void BackBtnFunc();

	UFUNCTION(BlueprintCallable)
	void OnCheckBoxComponentStateChanged(bool bIsChecked);
	
	UFUNCTION(BlueprintCallable)
	void OnFloatValueChangedEvent(float Value);
};
